#ifndef __VELOCITY_2D_H__
#define __VELOCITY_2D_H__


#include <iostream>
using namespace std;

class Velocity2D{
    public:
        Velocity2D():vx(0.0),vy(0.0),vth(0.0){};
        Velocity2D(float vx, float vy, float vth):vx(vx),vy(vy),vth(vth){};
        
        float vx;      //x方向速度
        float vy;      //y方向速度
        float vth;     //角速度

        // 运算符重载：<< 操作符
        friend std::ostream& operator<<(std::ostream& os, const Velocity2D& vel){
            os << "Velocity2D(vx: " << vel.vx << ", vy: " << vel.vy << ", vth: " << vel.vth << ")";
            return os;
        }

    private:
};


#endif